{include file="include:header" /}
<body>
    {include file="include:nav" /}
    <div class="inside-banner-wrap-02 wrap1920">
    	<div class="wrap1200">
    		<img class="inside-banner" src="__PUBLICINDEX__/images/inside-banner_03.jpg" alt="律団elvtuan" />
    		<div class="ani-t ani-t05 wow fadeInUp animated" data-wow-duration="1.2s" data-wow-delay="0.2s" ></div>
    		<div class="ani-t ani-t06 wow fadeInUp animated" data-wow-duration="1.2s" data-wow-delay="0.7s" ></div>
    	</div>
    </div>
    <div class="wrap1920 writ-doc">
		<!-- 法律文书 -->
		<div class="free-question">
			<dl class="question-kinds">
				<div class="wrap1200">
					<dt class='doc-t'></dt>
					<dd>
						<a  href="#" onclick="grabble(1)" {empty name="$type" }class="current"{/empty} >全部</a>
						{volist name="type_list" id="v"}
						<a {if condition="$type eq $v['writ_type_id']"}class="current"{/if} href="javascript:;"  onclick="grabble(1,{$v['writ_type_id']})">{$v['wt_name']}</a>
						{/volist}
					</dd>
				</div>
			</dl>

			<form action="" id="form-submit" method="get">
				<input type="hidden" name="type" value="{$type?$type:''}">
				<input type="hidden" name="sort" value="{$sort?$sort:''}">
				<input type="hidden" name="tag" value="{$tag?$tag:''}">
			</form>
			<!-- 问题列表 -->
			<div class="wrap1200">
				<div class="fl question-list-left">
					<div class="question-sort">
						<dl class="fl">
							<dt>排序：</dt>
							<dd>
								<a href="javascript:;"  onclick="grabble(2)" {if condition="$sort eq ''"}class="current"{elseif condition="$sort eq 2"/}class="current"{/if}>默认</a>
								<a href="javascript:;" onclick="grabble(3)" {eq name="$sort" value="3"}class="current"{/eq}>下载最多</a>
							</dd>
						</dl>
						<div class="question-search fr">
							<input type="text" placeholder='请输入关键词' value="{$tag?$tag:''}" name="tag_at" />
							<a href="javascript:;" onclick="grabble(4)">搜&nbsp;索</a>
						</div>
					</div>
					<ul class="doc-list">
					   {volist name="list" id="v"}
						<li>
							<div class="text">
								<h4 >{$v['w_title']|msubstr=0,10}</h4>
								<p class="des"><a href="#" style="color: #888;" title="{$v['w_describe']}">{$v['w_describe']|msubstr=0,45}</a></p>
								<div class="info-l">
									<p><span>行业</span><em>{$v['w_industry']}</em></p>
									<p><span>类型</span><em>{$v['wt_name']?$v['wt_name']:'其它'}</em></p>
									<!--<p><span>立场</span><em>中立</em></p>-->
									<p><span>版权</span><em>{$v['w_copyright']}</em></p>
								</div>
								<p class="count-l">
									<span><i class="iconfont">&#xe63a;</i> {$v['w_addtime']|substrdata}</span>
									<!--<span><i class="iconfont">&#xe6b7;</i> 5页</span>-->
									<span><i class="iconfont">&#xe621;</i> <font id="w_download_sum{$v['writ_id']}">{$v['w_download_sum']}</font></span>
								</p>
							</div>
							<div class="download">
								<a href="javascript:;" value="{$v['writ_id']}" class="doc-download" name="{$v['w_download_sum']}"><i class="iconfont">&#xe621;</i> 下载</a>
							</div>
						</li>
					 {/volist}
					</ul>
					<div class="page_wrap">
						<div class="pagination">
							{$page}
			            </div>
		            </div>
				</div>
				<!-- 热门问答 -->
				<div class="fr side-right">
					<!-- <a href="javascript:;" class="javascript:;"></a> -->
					<div class="side-gg mgt0">
						<a href="http://wpa.b.qq.com/cgi/wpa.php?ln=2&amp;uin=800817908" target="_blank"><img src="__PUBLICINDEX__/images/online-ask.png" alt="" /></a>
					</div>
				</div>
			</div>
		</div>
	</div>
	{include file="include:footer" /}
</body>
</html>
{include file="include:js" /}

<script>
	function  grabble(state,val){
		if(state == 1){
			val = val;
			$('[name="type"]').val(val);
		}else if(state ==4){
			val = $('[name="tag_at"]').val();
			$('[name="tag"]').val(val);
		}else{
			val = state;
			$('[name="sort"]').val(val);
		}
		$('#form-submit').submit();
	}
</script>
